package org.bbmall.bean.store;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 门店总览指标实体类
 * 对应数据库表：ads_store_overview
 */
@Data
@TableName("ads_store_overview")
public class AdsStoreOverview {

    /**
     * 主键ID
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 统计日期
     */
    @TableField("stat_date")
    private LocalDate statDate;

    /**
     * 门店总数
     */
    @TableField("total_stores")
    private Integer totalStores;

    /**
     * 营业中门店数
     */
    @TableField("operating_stores")
    private Integer operatingStores;

    /**
     * 维护中门店数
     */
    @TableField("maintenance_stores")
    private Integer maintenanceStores;

    /**
     * 覆盖城市数
     */
    @TableField("covered_cities")
    private Integer coveredCities;

    /**
     * 今日总客流
     */
    @TableField("today_customers")
    private Integer todayCustomers;

    /**
     * 昨日总客流
     */
    @TableField("yesterday_customers")
    private Integer yesterdayCustomers;

    /**
     * 增长率
     */
    @TableField("growth_rate")
    private BigDecimal growthRate;

    /**
     * 门店平均销售额
     */
    @TableField("avg_store_sales")
    private BigDecimal avgStoreSales;

    /**
     * 上月平均销售额
     */
    @TableField("last_month_avg")
    private BigDecimal lastMonthAvg;

    /**
     * 销售增长率
     */
    @TableField("sales_growth_rate")
    private BigDecimal salesGrowthRate;

    /**
     * 数据来源
     */
    @TableField("data_source")
    private String dataSource;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;
}